package domain.dao.event;

import core.util.MyBatisRepository;
import domain.entity.event.EventImgInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by bowen on 2017-08-17.
 */
@MyBatisRepository
public interface EventImgInfoDao {

    /**
     * 保存图片地址信息
     *
     * @param imgs
     * @return
     */
    public void create(@Param(value = "list")List<EventImgInfo> imgs);


    /**
     * 根据事件ID查询图片信息
     *
     * @param eventId
     * @return
     */
    public List<EventImgInfo> getImgsByEventId(long eventId);
}
